﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using University.Workshop.Presenters.AppointmentFolder;
using University.Workshop.Model;

namespace University.Workshop.Tests.AppointmentFolder
{
    public class RegisterAppointmentViewMock : IRegisterAppointmentView
    {
        #region IRegisterAppointmentView Implementation
        public int IdAppointment { set; get; }
        public string PatientId { set; get; }
        public string DoctorId { set; get; }
        public string AppointmentDate { set; get; }
        public string Time { set; get; }
        public string State { set; get; }

        public string message { set; get; }

        public void SetMessage(string message) 
        {
            this.message = message;
        }
        #endregion

        public RegisterAppointmentViewMock(Appointment newAppointment)
        {

            this.IdAppointment = newAppointment.AppointmentId;
            this.DoctorId = newAppointment.DoctorId;
            this.PatientId = newAppointment.PatientId;
            this.State = newAppointment.Description;
            this.AppointmentDate = newAppointment.Date;
        }

        public Appointment NewAppointment
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }
    }
}